package com.xcity.pomelo.response;

import java.util.List;

import com.xcity.game.item.drop.Drop;
import com.xcity.pomelo.response.PVEStageResponse.DropInfo;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@Deprecated
@PomeloMessage(type = Message.Type.RESPONSE)
public class PVEStageResultResponse extends Response {

	private int id; // 关卡id
	private int star; // 星级 0:未通过/失败;1~3:挑战成功(1~3星)
	private DropInfo rewards = DropInfo.EMPTY; // 获得的奖励

	public PVEStageResultResponse(int serial, int index, int star, List<Drop> drops, float addedRatio) {
		super(serial);
		this.id = index;
		this.star = star;
		this.rewards = drops != null ? new DropInfo(drops, addedRatio) : DropInfo.EMPTY;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getStar() {
		return star;
	}

	public void setStar(int star) {
		this.star = star;
	}

	public DropInfo getRewards() {
		return rewards;
	}

	public void setRewards(DropInfo rewards) {
		this.rewards = rewards;
	}

}
